package com.tmy.entity;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
     *
     * @author 谭明玥
 * @TableName manager
 */
public class Manager extends Account implements Serializable {

        /**
         * ID
         */
        // @NotNull(message="[ID]不能为空")
        @ApiModelProperty("ID")
        private Integer id;
        /**
         * 民宿id
         */
        // @NotNull(message="[民宿id]不能为空")
        @ApiModelProperty("民宿id")
        private Integer hotelId;
        /**
         * 店长名字
         */
        @NotBlank(message="[店长名字]不能为空")
        @Size(max= 255,message="编码长度不能超过255")
        @ApiModelProperty("店长名字")
        @Length(max= 255,message="编码长度不能超过255")
        private String name;
        /**
         * 密码
         */
        @NotBlank(message="[密码]不能为空")
        @Size(max= 255,message="编码长度不能超过255")
        @ApiModelProperty("密码")
        @Length(max= 255,message="编码长度不能超过255")
        private String password;
        /**
         * 角色
         */
        @NotBlank(message="[角色]不能为空")
        @Size(max= 255,message="编码长度不能超过255")
        @ApiModelProperty("角色")
        @Length(max= 255,message="编码长度不能超过255")
        private String role;
        /**
         * 电话
         */
        @NotBlank(message="[电话]不能为空")
        @Size(max= 255,message="编码长度不能超过255")
        @ApiModelProperty("电话")
        @Length(max= 255,message="编码长度不能超过255")
        private String phone;

        private String avatar;
        private String username;



        @Override
        public Integer getId() {
                return id;
        }

        @Override
        public void setId(Integer id) {
                this.id = id;
        }

        public Integer getHotelId() {
                return hotelId;
        }

        public void setHotelId(Integer hotelId) {
                this.hotelId = hotelId;
        }

        @Override
        public String getName() {
                return name;
        }

        @Override
        public void setName(String name) {
                this.name = name;
        }

        @Override
        public String getUsername() {
                return username;
        }

        @Override
        public void setUsername(String username) {
                this.username = username;
        }

        @Override
        public String getPassword() {
                return password;
        }

        @Override
        public void setPassword(String password) {
                this.password = password;
        }

        @Override
        public String getRole() {
                return role;
        }

        @Override
        public void setRole(String role) {
                this.role = role;
        }

        public String getPhone() {
                return phone;
        }

        public void setPhone(String phone) {
                this.phone = phone;
        }

        @Override
        public String getAvatar() {
                return avatar;
        }

        @Override
        public void setAvatar(String avatar) {
                this.avatar = avatar;
        }
}

